<!--
  @author yangjiangming
  @date 2018/11/26 10:00
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<zmn th:fragment="query">
    <div class="layui-form-item">
        <div class="layui-inline">
           <label class="layui-form-label">回访类别：</label>
            <div class="layui-input-inline" >
                <select name="category" lay-search lay-filter="category">
                    <option value="">请选择</option>
                    <option th:each="item : ${visitItems}" th:value="${item.value}" th:text="${item.text}"></option>
                </select>
            </div>
            <label class="layui-form-label">回访人：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForOperatorId"></div>
            </div>
            <label class="layui-form-label">产品分类：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl ::selectForShowCategTwoIdList"></div>
            </div>
            <label class="layui-form-label">用户层级：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForUserLevel"></div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">子公司：</label>
            <div class="layui-input-inline ">
                <div th:replace="common/listQueryItemTmpl :: selectForCompanyId"></div>
            </div>
            <label class="layui-form-label">服务公司：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForManageCompanyIdList"></div>
            </div>
            <label class="layui-form-label">工单状态：</label>
            <div class="layui-input-inline ">
                <div th:replace="common/listQueryItemTmpl :: selectForWorkStatusList"></div>
            </div>

            <div class="layui-input-inline btn-container">
                <div class="layui-btn-container">
                    <div th:replace="common/listQueryItemTmpl :: buttonForSearch"></div>
                    <div th:replace="common/listQueryItemTmpl :: buttonForClean"></div>
                    <div th:replace="common/listQueryItemTmpl :: buttonForExport"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div th:replace="~{common/listQueryItemTmpl :: timePicker('下单时间', 'receiveTime', true, ${startTime}, ${endTime})}"></div>
    </div>

    <!-- 回访时间 -->
    <div class="layui-form-item">
        <div th:replace="~{common/listQueryItemTmpl :: timePicker('回访时间', 'replyVisitTime', false, ${startTime}, ${endTime})}"></div>
    </div>

    <!-- 时间选择框 -->
    <div class="layui-form-item">
        <div class="layui-inline layui-inline-left">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline" style="width: 500px">
                <input type="checkbox" title="下单时间" value="0" lay-skin="primary" lay-filter="datepicker" checked>
                <input type="checkbox" title="回访时间" value="1" lay-skin="primary" lay-filter="datepicker">
            </div>
        </div>
    </div>

</zmn>